/**
 * Copyright &copy; 2016 青岛数码人科技有限公司   All rights reserved.
 */
package cn.net.ecode.modules.cms.entity;

import org.hibernate.validator.constraints.Length;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 友情链接Entity
 * @author 车磊岩
 * @version 2017-12-13
 */
public class Link extends DataEntity<Link> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String url;		// 跳转地址
	private String image;		// 图片路径
	private  Integer sorts; ;//排序
	
	public Link() {
		super();
	}

	public Link(String id){
		super();
		this.id = id;
	}

	@Length(min=0, max=64, message="名称长度不能超过 64 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="跳转地址长度不能超过 64 个字符")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=0, max=64, message="图片路径长度不能超过 64 个字符")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getSorts() {
		return sorts;
	}

	public void setSorts(Integer sorts) {
		this.sorts = sorts;
	}
	
}